import request from '@/utils/request'

// 查询平台通知列表
export function listPingtaitongzhi(query) {
  return request({
    url: '/system/pingtaitongzhi/list',
    method: 'get',
    params: query
  })
}
// 查询通知类型列表
export function listTongzhileixing(query) {
  return request({
    url: '/system/tongzhileixing/list',
    method: 'get',
    params: query
  })
}

// 查询客户端列表
export function listKehuduan(query) {
  return request({
    url: '/system/kehuduan/list',
    method: 'get',
    params: query
  })
}

// 查询状态列表
export function listZhuangtai(query) {
  return request({
    url: '/system/zhuangtai/list',
    method: 'get',
    params: query
  })
}


// 查询平台通知详细
export function getPingtaitongzhi(pttzId) {
  return request({
    url: '/system/pingtaitongzhi/' + pttzId,
    method: 'get'
  })
}

// 新增平台通知
export function addPingtaitongzhi(data) {
  return request({
    url: '/system/pingtaitongzhi',
    method: 'post',
    data: data
  })
}

// 修改平台通知
export function updatePingtaitongzhi(data) {
  return request({
    url: '/system/pingtaitongzhi',
    method: 'put',
    data: data
  })
}

// 删除平台通知
export function delPingtaitongzhi(pttzId) {
  return request({
    url: '/system/pingtaitongzhi/' + pttzId,
    method: 'delete'
  })
}
